package com.siwei.eqi.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@TableName("cal_task")
public class CalculateIndexTaskEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String indexName;
    private String regionName;
    private String regionCode;
    private Integer year;
    private Double normalization;
    private String creator;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //出参格式化
    @DateTimeFormat(pattern = "yyyy-MM-dd")  //入参格式化
    private LocalDate createTime;
}
